package com.lifesea.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbOutofhospSummaryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbOutofhospSummaryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andInHospIdIsNull() {
            addCriterion("in_hosp_id is null");
            return (Criteria) this;
        }

        public Criteria andInHospIdIsNotNull() {
            addCriterion("in_hosp_id is not null");
            return (Criteria) this;
        }

        public Criteria andInHospIdEqualTo(String value) {
            addCriterion("in_hosp_id =", value, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdNotEqualTo(String value) {
            addCriterion("in_hosp_id <>", value, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdGreaterThan(String value) {
            addCriterion("in_hosp_id >", value, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdGreaterThanOrEqualTo(String value) {
            addCriterion("in_hosp_id >=", value, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdLessThan(String value) {
            addCriterion("in_hosp_id <", value, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdLessThanOrEqualTo(String value) {
            addCriterion("in_hosp_id <=", value, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdLike(String value) {
            addCriterion("in_hosp_id like", value, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdNotLike(String value) {
            addCriterion("in_hosp_id not like", value, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdIn(List<String> values) {
            addCriterion("in_hosp_id in", values, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdNotIn(List<String> values) {
            addCriterion("in_hosp_id not in", values, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdBetween(String value1, String value2) {
            addCriterion("in_hosp_id between", value1, value2, "inHospId");
            return (Criteria) this;
        }

        public Criteria andInHospIdNotBetween(String value1, String value2) {
            addCriterion("in_hosp_id not between", value1, value2, "inHospId");
            return (Criteria) this;
        }

        public Criteria andIdcardIsNull() {
            addCriterion("idcard is null");
            return (Criteria) this;
        }

        public Criteria andIdcardIsNotNull() {
            addCriterion("idcard is not null");
            return (Criteria) this;
        }

        public Criteria andIdcardEqualTo(String value) {
            addCriterion("idcard =", value, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardNotEqualTo(String value) {
            addCriterion("idcard <>", value, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardGreaterThan(String value) {
            addCriterion("idcard >", value, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardGreaterThanOrEqualTo(String value) {
            addCriterion("idcard >=", value, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardLessThan(String value) {
            addCriterion("idcard <", value, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardLessThanOrEqualTo(String value) {
            addCriterion("idcard <=", value, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardLike(String value) {
            addCriterion("idcard like", value, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardNotLike(String value) {
            addCriterion("idcard not like", value, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardIn(List<String> values) {
            addCriterion("idcard in", values, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardNotIn(List<String> values) {
            addCriterion("idcard not in", values, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardBetween(String value1, String value2) {
            addCriterion("idcard between", value1, value2, "idcard");
            return (Criteria) this;
        }

        public Criteria andIdcardNotBetween(String value1, String value2) {
            addCriterion("idcard not between", value1, value2, "idcard");
            return (Criteria) this;
        }

        public Criteria andOrgnameIsNull() {
            addCriterion("orgname is null");
            return (Criteria) this;
        }

        public Criteria andOrgnameIsNotNull() {
            addCriterion("orgname is not null");
            return (Criteria) this;
        }

        public Criteria andOrgnameEqualTo(String value) {
            addCriterion("orgname =", value, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameNotEqualTo(String value) {
            addCriterion("orgname <>", value, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameGreaterThan(String value) {
            addCriterion("orgname >", value, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameGreaterThanOrEqualTo(String value) {
            addCriterion("orgname >=", value, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameLessThan(String value) {
            addCriterion("orgname <", value, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameLessThanOrEqualTo(String value) {
            addCriterion("orgname <=", value, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameLike(String value) {
            addCriterion("orgname like", value, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameNotLike(String value) {
            addCriterion("orgname not like", value, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameIn(List<String> values) {
            addCriterion("orgname in", values, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameNotIn(List<String> values) {
            addCriterion("orgname not in", values, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameBetween(String value1, String value2) {
            addCriterion("orgname between", value1, value2, "orgname");
            return (Criteria) this;
        }

        public Criteria andOrgnameNotBetween(String value1, String value2) {
            addCriterion("orgname not between", value1, value2, "orgname");
            return (Criteria) this;
        }

        public Criteria andDepatNameIsNull() {
            addCriterion("depat_name is null");
            return (Criteria) this;
        }

        public Criteria andDepatNameIsNotNull() {
            addCriterion("depat_name is not null");
            return (Criteria) this;
        }

        public Criteria andDepatNameEqualTo(String value) {
            addCriterion("depat_name =", value, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameNotEqualTo(String value) {
            addCriterion("depat_name <>", value, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameGreaterThan(String value) {
            addCriterion("depat_name >", value, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameGreaterThanOrEqualTo(String value) {
            addCriterion("depat_name >=", value, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameLessThan(String value) {
            addCriterion("depat_name <", value, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameLessThanOrEqualTo(String value) {
            addCriterion("depat_name <=", value, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameLike(String value) {
            addCriterion("depat_name like", value, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameNotLike(String value) {
            addCriterion("depat_name not like", value, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameIn(List<String> values) {
            addCriterion("depat_name in", values, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameNotIn(List<String> values) {
            addCriterion("depat_name not in", values, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameBetween(String value1, String value2) {
            addCriterion("depat_name between", value1, value2, "depatName");
            return (Criteria) this;
        }

        public Criteria andDepatNameNotBetween(String value1, String value2) {
            addCriterion("depat_name not between", value1, value2, "depatName");
            return (Criteria) this;
        }

        public Criteria andDocNameIsNull() {
            addCriterion("doc_name is null");
            return (Criteria) this;
        }

        public Criteria andDocNameIsNotNull() {
            addCriterion("doc_name is not null");
            return (Criteria) this;
        }

        public Criteria andDocNameEqualTo(String value) {
            addCriterion("doc_name =", value, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameNotEqualTo(String value) {
            addCriterion("doc_name <>", value, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameGreaterThan(String value) {
            addCriterion("doc_name >", value, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameGreaterThanOrEqualTo(String value) {
            addCriterion("doc_name >=", value, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameLessThan(String value) {
            addCriterion("doc_name <", value, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameLessThanOrEqualTo(String value) {
            addCriterion("doc_name <=", value, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameLike(String value) {
            addCriterion("doc_name like", value, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameNotLike(String value) {
            addCriterion("doc_name not like", value, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameIn(List<String> values) {
            addCriterion("doc_name in", values, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameNotIn(List<String> values) {
            addCriterion("doc_name not in", values, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameBetween(String value1, String value2) {
            addCriterion("doc_name between", value1, value2, "docName");
            return (Criteria) this;
        }

        public Criteria andDocNameNotBetween(String value1, String value2) {
            addCriterion("doc_name not between", value1, value2, "docName");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeIsNull() {
            addCriterion("out_hosp_time is null");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeIsNotNull() {
            addCriterion("out_hosp_time is not null");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeEqualTo(Date value) {
            addCriterion("out_hosp_time =", value, "outHospTime");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeNotEqualTo(Date value) {
            addCriterion("out_hosp_time <>", value, "outHospTime");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeGreaterThan(Date value) {
            addCriterion("out_hosp_time >", value, "outHospTime");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("out_hosp_time >=", value, "outHospTime");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeLessThan(Date value) {
            addCriterion("out_hosp_time <", value, "outHospTime");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeLessThanOrEqualTo(Date value) {
            addCriterion("out_hosp_time <=", value, "outHospTime");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeIn(List<Date> values) {
            addCriterion("out_hosp_time in", values, "outHospTime");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeNotIn(List<Date> values) {
            addCriterion("out_hosp_time not in", values, "outHospTime");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeBetween(Date value1, Date value2) {
            addCriterion("out_hosp_time between", value1, value2, "outHospTime");
            return (Criteria) this;
        }

        public Criteria andOutHospTimeNotBetween(Date value1, Date value2) {
            addCriterion("out_hosp_time not between", value1, value2, "outHospTime");
            return (Criteria) this;
        }

        public Criteria andInHospTimeIsNull() {
            addCriterion("in_hosp_time is null");
            return (Criteria) this;
        }

        public Criteria andInHospTimeIsNotNull() {
            addCriterion("in_hosp_time is not null");
            return (Criteria) this;
        }

        public Criteria andInHospTimeEqualTo(Date value) {
            addCriterion("in_hosp_time =", value, "inHospTime");
            return (Criteria) this;
        }

        public Criteria andInHospTimeNotEqualTo(Date value) {
            addCriterion("in_hosp_time <>", value, "inHospTime");
            return (Criteria) this;
        }

        public Criteria andInHospTimeGreaterThan(Date value) {
            addCriterion("in_hosp_time >", value, "inHospTime");
            return (Criteria) this;
        }

        public Criteria andInHospTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("in_hosp_time >=", value, "inHospTime");
            return (Criteria) this;
        }

        public Criteria andInHospTimeLessThan(Date value) {
            addCriterion("in_hosp_time <", value, "inHospTime");
            return (Criteria) this;
        }

        public Criteria andInHospTimeLessThanOrEqualTo(Date value) {
            addCriterion("in_hosp_time <=", value, "inHospTime");
            return (Criteria) this;
        }

        public Criteria andInHospTimeIn(List<Date> values) {
            addCriterion("in_hosp_time in", values, "inHospTime");
            return (Criteria) this;
        }

        public Criteria andInHospTimeNotIn(List<Date> values) {
            addCriterion("in_hosp_time not in", values, "inHospTime");
            return (Criteria) this;
        }

        public Criteria andInHospTimeBetween(Date value1, Date value2) {
            addCriterion("in_hosp_time between", value1, value2, "inHospTime");
            return (Criteria) this;
        }

        public Criteria andInHospTimeNotBetween(Date value1, Date value2) {
            addCriterion("in_hosp_time not between", value1, value2, "inHospTime");
            return (Criteria) this;
        }

        public Criteria andCurlDescIsNull() {
            addCriterion("curl_desc is null");
            return (Criteria) this;
        }

        public Criteria andCurlDescIsNotNull() {
            addCriterion("curl_desc is not null");
            return (Criteria) this;
        }

        public Criteria andCurlDescEqualTo(String value) {
            addCriterion("curl_desc =", value, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescNotEqualTo(String value) {
            addCriterion("curl_desc <>", value, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescGreaterThan(String value) {
            addCriterion("curl_desc >", value, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescGreaterThanOrEqualTo(String value) {
            addCriterion("curl_desc >=", value, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescLessThan(String value) {
            addCriterion("curl_desc <", value, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescLessThanOrEqualTo(String value) {
            addCriterion("curl_desc <=", value, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescLike(String value) {
            addCriterion("curl_desc like", value, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescNotLike(String value) {
            addCriterion("curl_desc not like", value, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescIn(List<String> values) {
            addCriterion("curl_desc in", values, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescNotIn(List<String> values) {
            addCriterion("curl_desc not in", values, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescBetween(String value1, String value2) {
            addCriterion("curl_desc between", value1, value2, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andCurlDescNotBetween(String value1, String value2) {
            addCriterion("curl_desc not between", value1, value2, "curlDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescIsNull() {
            addCriterion("out_hosp_desc is null");
            return (Criteria) this;
        }

        public Criteria andOutHospDescIsNotNull() {
            addCriterion("out_hosp_desc is not null");
            return (Criteria) this;
        }

        public Criteria andOutHospDescEqualTo(String value) {
            addCriterion("out_hosp_desc =", value, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescNotEqualTo(String value) {
            addCriterion("out_hosp_desc <>", value, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescGreaterThan(String value) {
            addCriterion("out_hosp_desc >", value, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescGreaterThanOrEqualTo(String value) {
            addCriterion("out_hosp_desc >=", value, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescLessThan(String value) {
            addCriterion("out_hosp_desc <", value, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescLessThanOrEqualTo(String value) {
            addCriterion("out_hosp_desc <=", value, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescLike(String value) {
            addCriterion("out_hosp_desc like", value, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescNotLike(String value) {
            addCriterion("out_hosp_desc not like", value, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescIn(List<String> values) {
            addCriterion("out_hosp_desc in", values, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescNotIn(List<String> values) {
            addCriterion("out_hosp_desc not in", values, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescBetween(String value1, String value2) {
            addCriterion("out_hosp_desc between", value1, value2, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andOutHospDescNotBetween(String value1, String value2) {
            addCriterion("out_hosp_desc not between", value1, value2, "outHospDesc");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWIsNull() {
            addCriterion("disease_name_w is null");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWIsNotNull() {
            addCriterion("disease_name_w is not null");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWEqualTo(String value) {
            addCriterion("disease_name_w =", value, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWNotEqualTo(String value) {
            addCriterion("disease_name_w <>", value, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWGreaterThan(String value) {
            addCriterion("disease_name_w >", value, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWGreaterThanOrEqualTo(String value) {
            addCriterion("disease_name_w >=", value, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWLessThan(String value) {
            addCriterion("disease_name_w <", value, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWLessThanOrEqualTo(String value) {
            addCriterion("disease_name_w <=", value, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWLike(String value) {
            addCriterion("disease_name_w like", value, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWNotLike(String value) {
            addCriterion("disease_name_w not like", value, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWIn(List<String> values) {
            addCriterion("disease_name_w in", values, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWNotIn(List<String> values) {
            addCriterion("disease_name_w not in", values, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWBetween(String value1, String value2) {
            addCriterion("disease_name_w between", value1, value2, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameWNotBetween(String value1, String value2) {
            addCriterion("disease_name_w not between", value1, value2, "diseaseNameW");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCIsNull() {
            addCriterion("disease_name_c is null");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCIsNotNull() {
            addCriterion("disease_name_c is not null");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCEqualTo(String value) {
            addCriterion("disease_name_c =", value, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCNotEqualTo(String value) {
            addCriterion("disease_name_c <>", value, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCGreaterThan(String value) {
            addCriterion("disease_name_c >", value, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCGreaterThanOrEqualTo(String value) {
            addCriterion("disease_name_c >=", value, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCLessThan(String value) {
            addCriterion("disease_name_c <", value, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCLessThanOrEqualTo(String value) {
            addCriterion("disease_name_c <=", value, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCLike(String value) {
            addCriterion("disease_name_c like", value, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCNotLike(String value) {
            addCriterion("disease_name_c not like", value, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCIn(List<String> values) {
            addCriterion("disease_name_c in", values, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCNotIn(List<String> values) {
            addCriterion("disease_name_c not in", values, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCBetween(String value1, String value2) {
            addCriterion("disease_name_c between", value1, value2, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andDiseaseNameCNotBetween(String value1, String value2) {
            addCriterion("disease_name_c not between", value1, value2, "diseaseNameC");
            return (Criteria) this;
        }

        public Criteria andComeDescIsNull() {
            addCriterion("come_desc is null");
            return (Criteria) this;
        }

        public Criteria andComeDescIsNotNull() {
            addCriterion("come_desc is not null");
            return (Criteria) this;
        }

        public Criteria andComeDescEqualTo(String value) {
            addCriterion("come_desc =", value, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescNotEqualTo(String value) {
            addCriterion("come_desc <>", value, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescGreaterThan(String value) {
            addCriterion("come_desc >", value, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescGreaterThanOrEqualTo(String value) {
            addCriterion("come_desc >=", value, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescLessThan(String value) {
            addCriterion("come_desc <", value, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescLessThanOrEqualTo(String value) {
            addCriterion("come_desc <=", value, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescLike(String value) {
            addCriterion("come_desc like", value, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescNotLike(String value) {
            addCriterion("come_desc not like", value, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescIn(List<String> values) {
            addCriterion("come_desc in", values, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescNotIn(List<String> values) {
            addCriterion("come_desc not in", values, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescBetween(String value1, String value2) {
            addCriterion("come_desc between", value1, value2, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andComeDescNotBetween(String value1, String value2) {
            addCriterion("come_desc not between", value1, value2, "comeDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescIsNull() {
            addCriterion("in_host_desc is null");
            return (Criteria) this;
        }

        public Criteria andInHostDescIsNotNull() {
            addCriterion("in_host_desc is not null");
            return (Criteria) this;
        }

        public Criteria andInHostDescEqualTo(String value) {
            addCriterion("in_host_desc =", value, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescNotEqualTo(String value) {
            addCriterion("in_host_desc <>", value, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescGreaterThan(String value) {
            addCriterion("in_host_desc >", value, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescGreaterThanOrEqualTo(String value) {
            addCriterion("in_host_desc >=", value, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescLessThan(String value) {
            addCriterion("in_host_desc <", value, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescLessThanOrEqualTo(String value) {
            addCriterion("in_host_desc <=", value, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescLike(String value) {
            addCriterion("in_host_desc like", value, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescNotLike(String value) {
            addCriterion("in_host_desc not like", value, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescIn(List<String> values) {
            addCriterion("in_host_desc in", values, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescNotIn(List<String> values) {
            addCriterion("in_host_desc not in", values, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescBetween(String value1, String value2) {
            addCriterion("in_host_desc between", value1, value2, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andInHostDescNotBetween(String value1, String value2) {
            addCriterion("in_host_desc not between", value1, value2, "inHostDesc");
            return (Criteria) this;
        }

        public Criteria andOrgCodeIsNull() {
            addCriterion("org_code is null");
            return (Criteria) this;
        }

        public Criteria andOrgCodeIsNotNull() {
            addCriterion("org_code is not null");
            return (Criteria) this;
        }

        public Criteria andOrgCodeEqualTo(String value) {
            addCriterion("org_code =", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotEqualTo(String value) {
            addCriterion("org_code <>", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeGreaterThan(String value) {
            addCriterion("org_code >", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeGreaterThanOrEqualTo(String value) {
            addCriterion("org_code >=", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeLessThan(String value) {
            addCriterion("org_code <", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeLessThanOrEqualTo(String value) {
            addCriterion("org_code <=", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeLike(String value) {
            addCriterion("org_code like", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotLike(String value) {
            addCriterion("org_code not like", value, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeIn(List<String> values) {
            addCriterion("org_code in", values, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotIn(List<String> values) {
            addCriterion("org_code not in", values, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeBetween(String value1, String value2) {
            addCriterion("org_code between", value1, value2, "orgCode");
            return (Criteria) this;
        }

        public Criteria andOrgCodeNotBetween(String value1, String value2) {
            addCriterion("org_code not between", value1, value2, "orgCode");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeIsNull() {
            addCriterion("idcardtype is null");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeIsNotNull() {
            addCriterion("idcardtype is not null");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeEqualTo(Byte value) {
            addCriterion("idcardtype =", value, "idcardtype");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeNotEqualTo(Byte value) {
            addCriterion("idcardtype <>", value, "idcardtype");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeGreaterThan(Byte value) {
            addCriterion("idcardtype >", value, "idcardtype");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("idcardtype >=", value, "idcardtype");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeLessThan(Byte value) {
            addCriterion("idcardtype <", value, "idcardtype");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeLessThanOrEqualTo(Byte value) {
            addCriterion("idcardtype <=", value, "idcardtype");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeIn(List<Byte> values) {
            addCriterion("idcardtype in", values, "idcardtype");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeNotIn(List<Byte> values) {
            addCriterion("idcardtype not in", values, "idcardtype");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeBetween(Byte value1, Byte value2) {
            addCriterion("idcardtype between", value1, value2, "idcardtype");
            return (Criteria) this;
        }

        public Criteria andIdcardtypeNotBetween(Byte value1, Byte value2) {
            addCriterion("idcardtype not between", value1, value2, "idcardtype");
            return (Criteria) this;
        }

        public Criteria andReferralNumberIsNull() {
            addCriterion("Referral_number is null");
            return (Criteria) this;
        }

        public Criteria andReferralNumberIsNotNull() {
            addCriterion("Referral_number is not null");
            return (Criteria) this;
        }

        public Criteria andReferralNumberEqualTo(String value) {
            addCriterion("Referral_number =", value, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberNotEqualTo(String value) {
            addCriterion("Referral_number <>", value, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberGreaterThan(String value) {
            addCriterion("Referral_number >", value, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberGreaterThanOrEqualTo(String value) {
            addCriterion("Referral_number >=", value, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberLessThan(String value) {
            addCriterion("Referral_number <", value, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberLessThanOrEqualTo(String value) {
            addCriterion("Referral_number <=", value, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberLike(String value) {
            addCriterion("Referral_number like", value, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberNotLike(String value) {
            addCriterion("Referral_number not like", value, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberIn(List<String> values) {
            addCriterion("Referral_number in", values, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberNotIn(List<String> values) {
            addCriterion("Referral_number not in", values, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberBetween(String value1, String value2) {
            addCriterion("Referral_number between", value1, value2, "referralNumber");
            return (Criteria) this;
        }

        public Criteria andReferralNumberNotBetween(String value1, String value2) {
            addCriterion("Referral_number not between", value1, value2, "referralNumber");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table tb_outofhosp_summary
     *
     * @mbggenerated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}